<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>峰峰物流后台管理系统</title>
<link rel="stylesheet" href="css/screen.css" type="text/css" media="screen" title="default" />
<!--  jquery core -->
<script src="js/jquery/jquery-1.7.2.min.js" type="text/javascript"></script>

<!-- Custom jquery scripts -->
<script src="js/jquery/custom_jquery.js" type="text/javascript"></script>

<!-- MUST BE THE LAST SCRIPT IN <HEAD></HEAD></HEAD> png fix -->
<script src="js/jquery/jquery.pngFix.pack.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$(document).pngFix( );

});

function check(){
	
	var uid = $("#uid").val();
	var psw = $("#password").val();
	if(uid!="" && psw!=""){
		if(uid!="admin"){
			alert("您不是管理员用户，请重试！");
			return false;
		}
		else{
			$.post("memberAction!memberLogin?member.username="+uid+"&member.password="+psw+"", function(json) {
				/*var json = eval('(' + result + ')');*/
				if(json.status=='none'){
					alert("用户名或密码错误.");
					return false;
				}
				
				if(json.status=='one'){
					localStorage.setItem("admin",uid); 
					window.location="index.html";
				}
		 	});
		}
	}else{
		alert("用户名密码不能为空！");
		return false;
	}
}
</script>
</head>
<body id="login-bg"> 
 
<!-- Start: login-holder -->
<div id="login-holder">

	<!-- start logo -->
	<div id="logo-login">
		<img src="images/shared/logo.png" width="156" height="40" alt="" />
	</div>
	<!-- end logo -->
	
	<div class="clear"></div>
	
	<!--  start loginbox ................................................................................. -->
	<div id="loginbox">
	
	<!--  start login-inner -->
	<div id="login-inner">
		<table border="0" cellpadding="0" cellspacing="0">
		<tr>
			<th>用户名:</th>
			<td><input type="text"  class="login-inp" id="uid"/></td>
		</tr>
		<tr>
			<th>密&nbsp;&nbsp;&nbsp;&nbsp;码:</th>
			<td><input type="password"  class="login-inp" id="password"/></td>
		</tr>
		<tr>
			<th></th>
			<td valign="top"><input type="checkbox" class="checkbox-size" id="login-check" /><label for="login-check">记住我</label></td>
		</tr>
		<tr>
			<th></th>
			<td><input type="button" class="submit-login"  onClick="check()"/></td>
		</tr>
		</table>
	</div>
 	<!--  end login-inner -->
	<div class="clear"></div>
	
 </div>
 <!--  end loginbox -->

</div>
<!-- End: login-holder -->
</body>
</html>